package com.qingcheng.service.seckill;

import com.qingcheng.pojo.seckill.SeckillOrder;
import com.qingcheng.util.SeckillStatus;

/**
 * @Author: LDeng
 * @Date: 2020-07-16 11:14
 */
public interface SeckillOrderService {


    //根据用户名查询订单号
    SeckillOrder queryByUserName(String username);


    //修改订单
    //@param outtradeno
    //@param username
    //@param transactionid
    void updateStatus(String outtradeno,String username,String transactionid);



    // 参数 id  , time , username
    Boolean add(Long id, String time, String username);

    //查询抢单排队状态
    //@param username

    SeckillStatus queryStatus(String username);

}
